package com.rs.game.player.dialogues;

public class Hans extends Dialogue {

	
	int npcId = 0;
	
	@Override
	public void start() {
		sendNPCDialogue(npcId, Expressions.HAPPY_TALKING,  "Hello, do you want to claim your veteran cape?");	
		
	}

	@Override
	public void run(int interfaceId, int componentId) {
		if (stage == -1) {
			sendOptionsDialogue("Capes", "Veteran cape (50hs of gameplay)", "10 years Veteran cape (1000hs of gameplay)");
			stage = 0;
		} else if (stage == 0) {
			if (componentId == OPTION_1) {
				if (player.time <= 50) {				
					player.getPackets().sendGameMessage("You need atleast 50 hours of gameplay to claim this cape");
					return;
				} else {
					player.getInventory().addItem(20763, 1);					
				}
			}
			if (componentId == OPTION_2) {
				if (player.time <= 1000) {				
					player.getPackets().sendGameMessage("You need atleast 1000 hours of gameplay to claim this cape");
					return;
				} else {
					player.getInventory().addItem(20709, 1);					
				}
			}
		}
		
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}

}
